@import "@/common/constants/StyleConst.scss";

.upload-dialog {
  .upload-content-wrap {
    .header {
      height: 32px;
      text-align: left;

      .title {
        font-size: 14px !important;
        font-weight: 700;
      }

      :deep .v-input--radio-group__input {
        justify-content: end;

        .file-type-radio {
          margin-right: 8px;
          height: 32px;
          min-width: 80px;
          border: 2px solid $color-theme-lightgrey;
          background-color: $color-theme-lightgrey;
          border-radius: 16px;
          padding-right: 16px;
          padding-left: 12px;

          &.active {
            background-color: $color-bg-white;
            border: 2px solid $color-theme-orange;
          }

          .mdi-radiobox-blank,
          .mdi-check-circle {
            font-size: 20px;
          }

          label {
            font-size: 12px;
            color: #565656;
          }
        }
      }
    }

    .images-wrap {
      border: 2px solid $color-theme-orange;
      border-radius: 8px;
      overflow-y: scroll;
      overflow-y: overlay;
      padding: 10px 12px;

      .images {
        text-align: left;

        &>.row {
          flex-wrap: wrap;
          gap: 8px;
        }

        .image-wrap {
          position: relative;
          width: 63.15px;
          height: 63.15px;
          overflow: hidden;
          display: flex;
          flex: unset;
          flex-grow: 1;
          align-items: center;

          .ornamental {
            position: absolute;
            top: 0;
            transform: rotate(45deg) translateX(-90%);
            width: 40px;
            height: 40px;
            background-color: #EB9B31;
          }

          .checkbox {
            :deep .v-input__slot {
              position: unset;

              .v-input--selection-controls__input {
                // background-color: #ffffff1a;
                margin-right: 0;
                position: absolute;
                right: 0;
                top: 0;

                .mdi-checkbox-blank {
                  color: $color-text-white;
                }

                .v-icon::before {
                  font-size: 18px;
                }
              }
            }
          }

          .img-introduction {
            width: 100%;
            height: 20.9px;
            background-color: #556282;
            position: absolute;
            bottom: 0;
            font-size: 8px;
            color: #fff;

            svg {
              width: 100%;
              height: 100%;
              fill: currentColor;

              text {
                font-size: 8px;
              }
            }
          }

          img {
            height: 100%;
            width: 100%;
            object-fit: cover;
          }
        }
      }
    }

    .upload-wrap {
      height: 64px;

      :deep .upload-btn {
        margin: 0;
        padding: 0;
        align-items: center;
        justify-content: center;

        .v-input__prepend-outer {
          margin: 0;

          .v-input__icon {
            width: 40px;
            height: 40px;

            .mdi-upload {
              width: inherit;
              height: inherit;
              border-radius: 50%;
              background-color: $color-theme-orange;

              &::before {
                color: #fff;
                font-size: 16px;
              }
            }
          }
        }
      }
    }
  }
}